import sys

from PyQt6.QtWidgets import QLabel, QApplication, QWidget


#
class SimpleWindow(QWidget):
    def __init__(self):
        super().__init__()
        self.initUi ()
    def initUi (self):
        self.setGeometry(300, 300, 250, 150)
        self.setWindowTitle('Simple pyqt6 demo')
        label=QLabel('Hello World!',self)
        label.move(50,50)
        self.show()

if __name__ == '__main__':
    app=QApplication(sys.argv)
    window=SimpleWindow()
    sys.exit(app.exec())


# from PyQt6 import QtWidgets
# print("QtWidgets module imported successfully.")






















